<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php
    /*
     * Print the <title> tag based on what is being viewed.
     */
    global $page, $paged;

    wp_title( '|', true, 'right' );

    // Add the blog name.
    bloginfo( 'name' );

    // Add the blog description for the home/front page.
    $site_description = get_bloginfo( 'description', 'display' );
    if ( $site_description && ( is_home() || is_front_page() ) )
        echo " | $site_description";

    // Add a page number if necessary:
    if ( $paged >= 2 || $page >= 2 )
        echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );

    ?></title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="robots" content="index, follow" />
<meta name="author" content="" />
<link rel="shortcut icon" href="<?php echo bloginfo('template_url'); ?>/images/favicon.ico" type="image/x-icon" />

<link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_url'); ?>/css/screen.css" media="screen" />
<?php                            
    $lang = qtrans_getLanguage();
    if($lang=="vi"):
?>    
<link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_url'); ?>/css/screen_vi.css" media="screen" />
<?php
    endif;
?>
<link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_url'); ?>/css/default.css" media="screen" />
<link rel="stylesheet" href="<?php echo bloginfo('template_url'); ?>/css/nivo-slider.css" type="text/css" media="screen" />
<script type="text/javascript" src="<?php echo bloginfo('template_url'); ?>/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<?php echo bloginfo('template_url'); ?>/js/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
    $('#slider').nivoSlider({
            pauseOnHover: true,
            directionNav: false
    });
});
</script>
<?php
    if(is_page('strategy')):
?>
<script type="text/javascript" src="<?php echo bloginfo('template_url'); ?>/js/jquery.lightbox-0.5.min.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_url'); ?>/css/jquery.lightbox-0.5.css" media="screen" />
<script type="text/javascript">
$(window).load(function() {
    $('.leader').lightBox({
        imageLoading: '<?php echo bloginfo('template_url'); ?>/images/lightbox-btn-loading.gif',
        imageBtnClose: '<?php echo bloginfo('template_url'); ?>/images/lightbox-btn-close.gif',
        imageBtnPrev: '<?php echo bloginfo('template_url'); ?>/images/lightbox-btn-prev.gif',
        imageBtnNext: '<?php echo bloginfo('template_url'); ?>/images/lightbox-btn-next.gif'
    });
    $('.diagram').lightBox({
        imageLoading: '<?php echo bloginfo('template_url'); ?>/images/lightbox-btn-loading.gif',
        imageBtnClose: '<?php echo bloginfo('template_url'); ?>/images/lightbox-btn-close.gif',
        imageBtnPrev: '<?php echo bloginfo('template_url'); ?>/images/lightbox-btn-prev.gif',
        imageBtnNext: '<?php echo bloginfo('template_url'); ?>/images/lightbox-btn-next.gif'
    });
});
<?php
    endif;
?>
</script>
</head>
<body>
<div id="container">
  <div id="container-inner">
    <div id="header">          
      <div class="top-header">
        <h1 class="logo"><a href="<?php echo bloginfo('url'); ?>" title="duong dong"><img src="<?php echo bloginfo('template_url'); ?>/images/logo.png" alt="" width="138" height="113"/></a></h1>
        <?php
            $args = array(
                'child_of' => 60,
                'sort_order' => 'ASC',
                'sort_column' => 'ID',
                'post_type' => 'page',
                'post_status' => 'publish'
            );
            $subs = get_pages($args);
            wp_reset_query();
            if($lang=="en"):
        ?>
        <ul class="nav-main">
          <li <?php if(is_home()) echo 'class="active"'; ?>><a href="<?php echo bloginfo('url'); ?>" title="Home" class="ui-nav init-nav-1">Home</a></li>
          <li <?php if(is_page('about')) echo 'class="active"'; ?>><a href="<?php echo get_permalink(2); ?>" title="About" class="ui-nav init-nav-2">About</a></li>
          <li class="has-sub<?php if(is_page('our-works')||mv_is_subpage('our-works')) echo ' active'; ?>"><a href="<?php echo get_permalink(60); ?>" title="Our Works" class="ui-nav init-nav-3">Our Works</a>
            <ul class="sub-nav">
                <?php                    
                    foreach($subs as $subpage): 
                ?>
              <li><a href="<?php echo get_page_link($subpage->ID); ?>" title="<?php echo __($subpage->post_title); ?>"><?php echo __($subpage->post_title); ?></a></li>
                <?php
                    endforeach;
                ?>
            </ul>
          </li>
          <li <?php if(is_page('strategy')) echo 'class="active"'; ?>><a href="<?php echo get_permalink(17); ?>" title="Strategy" class="ui-nav init-nav-4">Strategy</a></li>
          <li <?php if(is_category(3)) echo 'class="active"'; ?>><a href="<?php echo get_category_link(3); ?>" title="Recruitment" class="ui-nav init-nav-5">Recruitment</a></li>
          <li <?php if(is_page('contact')) echo 'class="active"'; ?>><a href="<?php echo get_permalink(34); ?>" title="Contact" class="ui-nav init-nav-6">Contact</a></li>
        </ul>
        <?php
            else:
        ?>
        <ul class="nav-main">
          <li <?php if(is_home()) echo 'class="active"'; ?>><a href="<?php echo bloginfo('url'); ?>" title="Trang chủ" class="ui-nav init-nav-1">Trang chủ</a></li>
          <li <?php if(is_page('about')) echo 'class="active"'; ?>><a href="<?php echo get_permalink(2); ?>" title="Giới thiệu" class="ui-nav init-nav-2">Giới thiệu</a></li>
          <li class="has-sub<?php if(is_page('our-works')||mv_is_subpage('our-works')) echo ' active'; ?>"><a href="<?php echo get_permalink(60); ?>" title="Công việc" class="ui-nav init-nav-3">Công việc</a>
            <ul class="sub-nav">
                <?php                    
                    foreach($subs as $subpage): 
                ?>
              <li><a href="<?php echo get_page_link($subpage->ID); ?>" title="<?php echo __($subpage->post_title); ?>"><?php echo __($subpage->post_title); ?></a></li>
                <?php
                    endforeach;
                ?>
            </ul>
          </li>
          <li <?php if(is_page('strategy')) echo 'class="active"'; ?>><a href="<?php echo get_permalink(17); ?>" title="Chiến lược" class="ui-nav init-nav-4">Chiến lược</a></li>
          <li <?php if(is_category(3)) echo 'class="active"'; ?>><a href="<?php echo get_category_link(3); ?>" title="Tuyển dụng" class="ui-nav init-nav-5">Tuyển dụng</a></li>
          <li <?php if(is_page('contact')) echo 'class="active"'; ?>><a href="<?php echo get_permalink(34); ?>" title="Liên hệ" class="ui-nav init-nav-6">Liên hệ</a></li>
        </ul>
        <?php
            endif;
        ?>
      </div>
      <div class="bottom-header">
        <ul class="lang">
          <li class="first"><a href="<?php echo qtrans_convertURL('', 'en'); ?>" title="Eng">Eng</a></li>
          <li><a href="<?php echo qtrans_convertURL('', 'vi'); ?>" title="VIE">VIE</a></li>
        </ul>
        <?php
            if($lang=="en"): 
        ?>
        <div class="intro-block">
          <h2 class="title">Who we are?</h2>
          <div class="intro-txt">
            <h3>Duong Dong JSC specializes in:</h3>
            <ul class="wdth-type-1">
              <li>Ship's operating</li>
              <li>Ship's supplier</li>
              <li>Pilot service &amp; rescue service at sea</li>
              <li>Factory for rent.</li>
            </ul>
            <ul class="wdth-type-2">
              <li>Multimodal transport</li>
              <li>Wholesale and retail of  imported cars from the US (under 12 seats)</li>
              <li>Steel and construction materials bussiness,…</li>
            </ul>
          </div>
        </div>
        <?php
            else: 
        ?>
        <div class="intro-block">
          <h2 class="title">Chúng tôi là ai?</h2>
          <div class="intro-txt">
            <h3>Công ty Cổ phần Du lịch và Vận tải Dương Đông chuyên hoạt động các lĩnh vực:</h3>
            <ul class="wdth-type-1">
              <li>Khai thác tàu biển</li>
              <li>Dịch vụ cung ứng tàu biển</li>
              <li>Dịch vụ hoa tiêu và cứu hộ trên biển</li>
              <li>Cho thuê nhà xưởng, kho bãi</li>
            </ul>
            <ul class="wdth-type-2">
              <li>Kinh doanh vận tải đa phương thức</li>
              <li>Bán sỉ và lẻ ô tô con nhập khẩu từ Mỹ (loại 12 chỗ ngồi trở xuống)</li>
              <li>Mua bán sắt thép và vật liệu xây dựng, ....</li>
            </ul>
          </div>
        </div>
        <?php
            endif; 
        ?>
      </div>        
      <div class="banner">
        <div id="slider" class="slideshow-banner nivoSlider">
            <?php
                $args = array(
                    'orderby'         => 'post_date',
                    'order'           => 'ASC',
                    'post_type'       => 'attachment'
                );
                $slides = get_posts($args);
                wp_reset_query();
                foreach($slides as $slide):
                    $taxonomy = wp_get_post_terms( $slide->ID, 'media_category');
                    if($taxonomy[0]->slug=='slideshow'):
                        $images = wp_get_attachment_image_src($slide->ID,'full');
                        if($images):
            ?>
            <img src="<?php echo $images[0]; ?>" alt="" class="fullW"/>
            <?php
                        endif;
                    endif;    
                endforeach;
            ?>     
        </div>
      </div>
    </div>
    <div id="main" <?php if(is_page('strategy')||is_page('our-works')||mv_is_subpage('our-works')) echo 'class="details"'; ?>>